/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tools.download.subtitles.sonline;

import java.util.logging.Level;
import tools.MySeriesLogger;
import tools.download.subtitles.AbstractDownloadForm;

/**
 * The subtitleOnline messages form
 * @author lordovol
 */
public class SOnlineForm extends AbstractDownloadForm {

    private static final long serialVersionUID = 2353636L;

    /** Creates new form DownloadSubtitlesForm
     * @param sOnlineCode The subtitleOnline code
     * @param episode The episode number
     * @param season The series season
     * @param localDir The series local directory
     * @param title The episodes title
     */
    public SOnlineForm(String sOnlineCode, int season, int episode, String localDir, String title) {
        MySeriesLogger.logger.log(Level.INFO, "Showing Subtitles online form");
        super.init();
        label_title.setText("Download from SubtitleOnline.com");
        label_subtitle.setText(title);
        setLocationRelativeTo(null);
        DownloadSOnline d = new DownloadSOnline(sOnlineCode, season, episode, this);
        d.setLocalDir(localDir);
        Thread t = new Thread(d);
        t.start();
        setVisible(true);

    }
}
